package com.bdqn.blog.service.impl;

import com.bdqn.blog.entity.Singer;
import com.bdqn.blog.mapper.SingerMapper;
import com.bdqn.blog.service.SingerService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 歌手 服务实现类
 * </p>
 *
 * @author 阿桐幕
 * @since 2020-10-29
 */
@Service
public class SingerServiceImpl extends ServiceImpl<SingerMapper, Singer> implements SingerService {

    @Autowired
    private  SingerMapper singerMapper;

    /**
     * 查询全部 模糊查询
     *
     * @param name
     */
    @Override
    public List<Singer> findSingerAllOrByName(String name) {
        return singerMapper.findSingerAllOrByName(name);
    }

    @Override
    public List<Singer> findSingerAllOrBySex(Integer sex) {
        return singerMapper.findSingerAllOrBySex(sex);
    }
}
